<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div>
		<a href="#">地狗首页</a>
		喵，欢迎来到地狗
		<c:if test="${username==null }"><a href="${pageContext.request.contextPath }/toLogin">请登录</a>
		<a href="${pageContext.request.contextPath }/user/toInsert">免费注册</a></c:if>
		<c:if test="${username!=null }">${username }<a href="${pageContext.request.contextPath}/logout">注销</c:if>
		<a href="${pageContext.request.contextPath }/orders/orderss">我的订单<c:if test="${ordersNum !=null}">${ordersNum }单</c:if></a>
		<a href="${pageContext.request.contextPath }/car/car">购物车<c:if test="${car !=null}">${car }件</c:if></a>
	</div>
	<div><img alt="地狗" src="${pageContext.request.contextPath }/statics/img/digou.JPG" height="100" width="150">
		<input type="text"><button>搜索</button></div>
</body>
</html>